package com.sk.ccflower.server.lib.sysUtils;

import com.sk.ccflower.server.lib.sysBeans.CpuLoadBean;
import com.sk.ccflower.server.lib.sysBeans.CpuStatBean;
import com.sk.ccflower.server.lib.sysBeans.ProcCpuLoadBean;
import com.sk.ccflower.server.lib.sysBeans.ProcStatBean;


/**
 * @author eunwoogi
 * @since 2009. 11. 11.
 */
public interface SysResCollectFacade {
	
	int getPid( String name ) throws Exception;
	String getCpuStat() throws Exception;
	CpuStatBean parseCpuStat( String stat ) throws Exception;
	CpuLoadBean getCpuLoad( CpuStatBean oldData, CpuStatBean newData ) throws Exception;
	String getProcStat( int pid ) throws Exception;
	ProcStatBean parseProcStat( String stat ) throws Exception;
	ProcCpuLoadBean getProcCpuLoad( ProcStatBean oldProc, ProcStatBean newProc, CpuStatBean oldCpu, CpuStatBean newCpu ) throws Exception;
	
}
